//
// Created by 17775 on 2024/6/21.
//

#ifndef RAYCI_HISTOGRAM_H
#define RAYCI_HISTOGRAM_H

#include "../qcustomplot.h"
#include "../utils/HistogramDataReceiveListener.h"
#include "histogrambase.h"

class Histogram : public HistogramBase, public HistogramDataReceiveListener{
Q_OBJECT

signals:
    void stopHistogramThread();

public:
    explicit Histogram(QWidget *parent = nullptr);
    ~Histogram() override;
    int getOrder() const override {
        return 100;
    }
    void setWindowTitleName(const QString& name);
    void receiveMessage(const std::shared_ptr<PowerProfileData<QVector<double>>>& data) override;
    void closeEvent(QCloseEvent *event) override;
};


#endif //RAYCI_HISTOGRAM_H
